package schedulo.core.task.provider.parameters;

import java.io.File;

import schedulo.core.task.provider.TaskProvider;

public abstract class FileParameterSpec extends ParameterSpec {

	public FileParameterSpec(String paramName) {
		super(paramName);
	}

	public void setParameterSpec(TaskProvider taskProvider, Parameters parameters)
			throws ParametersException {
		setParameterValue(taskProvider, parameters.getArgFile(getName()));
	}

	public abstract void setParameterValue(TaskProvider taskProvider, File file);
}
